<template>
<div id="queryTemplate">
	<el-row>
		<el-col :span="24">
			<!-- <el-form :model="queryform"> -->
			<el-form :model="queryform" :status-icon="true" :show-message="false" :inline="true" ref="queryform" label-width="100px" class="demo-ruleForm">
				
				<el-row>
					<el-col :span="11">
						<el-form-item label="支付流水号" prop="merchantOrderCode">
							<el-input v-model="queryform.merchantOrderCode" ></el-input>
						</el-form-item>
					</el-col>

					<el-col :span="11" >
						<el-form-item label="支付渠道商户" prop="merchantId">
							<el-input v-model="queryform.merchantId" ></el-input>
						</el-form-item>
					</el-col>
				</el-row>

				<el-row>
					<el-col :span="11" >
						<el-form-item label="报文类型" prop="messageType">	
							<el-select v-model="queryform.messageType" placeholder="请选择">
								<el-option label="发送报文" value="1"></el-option>
								<el-option label="接受报文" value="2"></el-option>
							</el-select>
						</el-form-item>
					</el-col>

					<el-col :span="11">
						<el-form-item label="接口类型" prop="interfaceType">
							<el-select v-model="queryform.interfaceType" placeholder="请选择" >
								<el-option label="银联消费接口" value="1"></el-option>
								<el-option label="银联交易状态查询接口" value="2"></el-option>
								<el-option label="银联文件传输接口" value="3"></el-option>
							</el-select>
						</el-form-item>
					</el-col>
				</el-row>
			</el-form>
		</el-col>
	</el-row>
</div>
	
</template>

<script>

export default {
  name:'payLogQueryTemplate',
  components: {
	  
  },
  data() {
    return {
      queryform: {mchCode:undefined,mchType:undefined,mchStatus:undefined,corpId:undefined,mchName:undefined}
    };
  },
  props: {
    submitSearch:{type:String,}
  },
  watch: {
    submitSearch: function(val) {
      if (val == "true") {
        this.$emit("query-data",this.queryform);
      }else if(val=="false"){
        this.$refs["queryform"].resetFields();
        setTimeout(()=>{
            this.$emit("refresh-quey-data",this.queryform);
            },200)
      };
      setTimeout(()=>{
        this.$emit("update:submitSearch","0");
      },200)
    },
  }
};
</script>

<style rel="stylesheet" lang="scss" scoped>

</style>